import 'package:dk_flutter_base/src/ui/widget/dk_refresh_list.dart';
import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:dk_flutter_module_sale/r.dart';


class RefreshPage extends StatelessWidget {


  @override
  Widget build(BuildContext context) {

 /*   return DkRefreshListWidget<int>(
      pageTotal: 5,
      firstListData: [2,3],
      itemBuilder: (BuildContext context, int index) {
        return Text('--------$index--------');
      },
      refreshListListener: (int pageIndex, SetRefreshData<int> setRefreshData) {
        print("---------当前页:$pageIndex----");

        setRefreshData([pageIndex + 5, pageIndex + 6, pageIndex + 7, pageIndex + 8]);

      },
    );
*/


 return  Stack(
   children: <Widget>[

  /*   SizedBox.expand(  // 默认填满父元素
       child: Container(
         decoration: BoxDecoration(
           color: Colors.lightBlue,
         ),
       ),
     ),
     */

   Container(
     width: double.infinity,
     height: double.infinity,

     color: Colors.blue,

   ),


     Positioned(
         top: 250.0,  // 距离父元素上方的距离
         right: 20.0, // 距离父元素右方的距离
         child: Container(
           child: Icon(
             Icons.ac_unit,
             color: Colors.white,
             size: 32.0,
           ),
           decoration: BoxDecoration(
             shape: BoxShape.circle,
             gradient: RadialGradient(colors: [  // 添加渐变色
               Color.fromRGBO(7, 102, 255, 1.0),
               Color.fromRGBO(200, 200, 200, 0.5),
             ]),
           ),
         )),
     Positioned(
       top: 70.0,
       right: 10.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),

     Positioned(
       top: 80.0,
       right: 150.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 90.0,
       right: 40.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 80.0,
       right: -20.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 200.0,
       right: 300.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 314.0,
       right: 400.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 400.0,
       left: 40.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 420.0,
       right: 250.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 500.0,
       right: 230.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 530.0,
       right: 50.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 570.0,
       right: 260.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 590.0,
       right: 222.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 620.0,
       right: 290.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 700.0,
       right: 150.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
     Positioned(
       top: 800.0,
       left: 40.0,
       child: Icon(
         Icons.ac_unit,
         color: Colors.white,
         size: 32.0,
       ),
     ),
   ],
 );



/*
return Container(
    width: 60.0,
    height: 20.0,
    margin: EdgeInsets.only(top: 100,left: 50),
    child: Container(
      padding: EdgeInsets.fromLTRB(8, 8, 8, 8),
      decoration: BoxDecoration(
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(14),
          topRight: Radius.circular(14),
          bottomRight: Radius.circular(14),
        ),
        color:Colors.blue,),
      child: Text('88',
        style: TextStyle(
          color: Colors.green,
        ),),
    )
);
*/

/*
return       Container(
    width: 100.0,
    height: 100.0,
    margin: EdgeInsets.all(20.0),
    decoration: new BoxDecoration(
    color: Color(0x6600ff00),
    border: Border.all(
    color: Color(0xff0000ff)
    ),
    borderRadius: BorderRadius.only(
    topLeft: Radius.circular(8),
  topRight: Radius.circular(8),
  bottomRight: Radius.circular(8),
),
    ));
      */
  }

}
